package com.ruoyi.framework.mq.RabbitMQ;

import org.springframework.stereotype.Component;

/**
 * rabbitMq配置需要的常量
 */
@Component
public class  RabbitMqConstants {

    /**
     * Direct
     */
    //direct队列的名称
    public static final String DIRECT_QUEUE = "direct_queue";
    //direct交换机名称
    public static final String DIRECT_EXCHANGE = "directExchange";
    //direct交换机路由
    public static final String DIRECT_ROUTINGKEY="direct_routingkey";
    //fanout队列1的名称
    public static final String FANOUT_QUEUE_1 = "fanout_queue1";
    //fanout队列2的名称
    public static final String FANOUT_QUEUE_2 = "fanout_queue2";
    //fanout转发交换机名称
    public static final String FANOUT_EXCHANGE = "fanoutExchange";

    //转发交换机名称
    public static final String TOPIC_EXCHANGE = "topicExchange";

    // 延迟交换机
    //延迟交换机的名称
    public static final String DELAYED_EXCHANGE = "delayedExchange";
    //延迟交换机的type  x-delayed-message 固定值
    public static final String DELAYED_EXCHANGE_TYPE = "x-delayed-message";

    //测试交换机的bean名称
    public static final String TEST_EXCHANGE_BEAN_NAME = "testExchange";
    //测试交换机名称
    public static final String TEST_EXCHANGE = "testExchange";



    //topic队列1的名称常量
    public static final String TOPIC_QUEUE_1 = "topic_queue_1";
    //topic队列2的名称常量
    public static final String TOPIC_QUEUE_2 = "topic_queue_2";

    //延迟队列的名称常量
    public static final String DELAYED_QUEUE = "delayed_queue";





}
